kernel-path  :=/app/linux/ATOMPI-CA1_SDK_v1.1/kernel/
current-path :=$(shell pwd)

obj-m += mytp.o

all:
	make -C $(kernel-path) M=$(current-path) modules ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu-

app:
	# rm app
	aarch64-none-linux-gnu-g++ -o app app.c -lpthread


clean:
	make -C $(kernel-path) M=$(current-path) clean
